package com.tongcao.cn.model;

/**
 * @Author:tongcao
 * @Date:2019/4/1 14:09
 * Description:
 */
public class Person {


    private String name;

    private int age;

    private String email;

    private double length;

    private String address;


    private static String course;


    public static String getCourse() {
        return course;
    }

    public static void setCourse(String course) {
        Person.course = course;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Person() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"name\":\"")
                .append(name).append('\"');
        sb.append(",\"age\":")
                .append(age);
        sb.append(",\"email\":\"")
                .append(email).append('\"');
        sb.append(",\"length\":")
                .append(length);
        sb.append('}');
        return sb.toString();
    }
}
